<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form>
            <div>
                A: <h:inputText value="#{eventos.campoA}" onchange="submit()" valueChangeListener="#{eventos.campoMudou}"/>
            </div>
            <div>
                B: <h:selectOneListbox value="#{eventos.campoB}">
                    <f:selectItems value="#{eventos.listaB}" var="select" itemLabel="#{select}"/>
                   </h:selectOneListbox>
            </div>

            <div>
                <h:panelGrid id="date" columns="2">
                    <f:event type="postValdate" listener=""/>
                        <h:inputText id="day" value="" size="2" required="true"/>
                        <h:inputText id="month" value="" size="2" required="true"/>
                        <h:inputText id="year" value="" size="4" required="true"/>
                </h:panelGrid>
            </div>

        </h:form>
    </h:body>
</html>

